-- GENERATED SPELL FOR [Stormforged Taskmaster] --


function spell0_29369(pUnit, Event) --@Lightning Charged,Self--
pUnit:FullCastSpellOnTarget(52701,pUnit)
pUnit:RegisterEvent('Sorts_29369', 30254, 1)
end

function spell1_29369(pUnit, Event) --@Stormstrike,n/a--
pUnit:FullCastSpellOnTarget(51876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29369', 12277, 1)
end

function Sorts_29369(pUnit, Event)
local choix_sorts_29369 = math.random(0, 1)
if choix_sorts_29369 == 0 then
pUnit:RegisterEvent('spell0_29369', 1, 1)
end
if choix_sorts_29369 == 1 then
pUnit:RegisterEvent('spell1_29369', 1, 1)
end
end

function mob29369_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29369', math.random(1500, 3000), 1)
end

function mob29369_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29369_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29369_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29369, 1, 'mob29369_Action')
RegisterUnitEvent(29369, 2, 'mob29369_Leave')
RegisterUnitEvent(29369, 3, 'mob29369_Kill')
RegisterUnitEvent(29369, 4, 'mob29369_Die')
